<template>
  <div v-if="value">
    <header @click="close">弹出层title</header>
    <div class="content">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  emits: ['input'],
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    // 关闭弹出层
    close () {
      this.$emit('input', false)
    }
  }
}
</script>

<style>
</style>
